package com.pattern.controller;

import com.pattern.factory.SimpleFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test")
public class Test {
    @GetMapping("/lottery")
    public void getProduct() throws Exception {
        String product="RANDOM_PRIZE";
        SimpleFactory.getProduct(product);
    }
}
